<?php
namespace App\Traits;
trait Api {

    protected function auth(string $account, string $password)
    {
        $data = '{
                    "status": 200,
                    "data": {
                        "code": 0,
                        "teacher": {
                            "user_id": 1,
                            "name": "example_teacher_name",
                            "token": "0AAAA8986AXXXXXD2A3417DBF4"
                        }
                    },
                    "msg": "",
                    "debug": {
                        "stack": [],
                        "sqls": [],
                        "version": "1.4.2"
                    }
                    }';
        return json_decode($data, true);
    }
}
